<!-- xml version="1.0" encoding="utf-8" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<title>De Bello Gallico</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link href="../flashcard.css" rel="stylesheet" type="text/css">
</head>


<script type="text/javascript">
var sentences = [
  [ ["His", "rebus", "adducti", "et", "auctoritate", "Orgetorigis", "permoti"],
    ["By-these", "things", "to-led", "and", "by-commanding-influence", "of-Orgetorix", "greatly-moved,"] ],
  [ ["constituerunt", "ea", "quae", "ad", "proficiscendum", "pertinerent", "comparare,"],
    ["they-determined", "those-things", "which", "to", "act-of-setting-out", "pertained", "to-prepare,"] ],
  [ ["iumentorum", "et", "carrorum", "quam", "maximum", "numerum", "coemere,", "sementes", "quam", "maximas", "facere,"],
    ["of-beasts-of-burden", "and", "of-carts", "(as)", "greatest", "number", "to-buy-up,", "sowings", "(as)", "greatest", "to-make,"] ],
  [ ["ut", "in", "itinere", "copia", "frumenti", "suppeteret,", "cum", "proximis", "civitatibus", "pacem", "et", "amicitiam", "confirmare."],
    ["that", "on", "march", "abundance", "of-grain", "might-be-at-hand,", "with", "nearest", "States", "peace", "and", "league-of-amity", "to-confirm."] ],
  [ ["Ad", "eas", "res", "conficiendas", "biennium", "sibi", "satis", "esse", "duxerunt:"],
    ["For", "those", "affairs", "to-be-thoroughly-attended-to", "two-years’-space", "for-themselves", "enough", "to-be", "they-reckoned:"] ],
  [ ["in", "tertium", "annum", "profectionem", "lege", "confirmant."],
    ["on", "third", "year", "departure", "by-decree", "they-appoint-positively."] ],
  [ ["Ad", "eas", "res", "conficiendas", "Orgetorix", "deligitur."],
    ["For", "those", "things", "to-be-accomplished", "Orgetorix", "is-chosen."] ],
  [ ["Is", "sibi", "legationem", "ad", "civitates", "suscepit."],
    ["That-one", "for-himself", "office-of-ambassador", "to", "States", "undertook."] ],
  [ ["In", "eo", "itinere", "persuadet", "Castico,", "Catamantaloedis", "filio,", "Sequano,"],
    ["On", "that", "jouney", "he-prevails-upon", "Casticus,", "Catamantaloedis’", "son,", "Sequanian,"] ],
  [ ["cuius", "pater", "regnum", "in", "Sequanis", "multos", "annos", "obtinuerat", "et", "a", "senatu", "populi", "Romani", "amicus", "appellatus", "erat,"],
    ["whose", "father", "royal-power", "among", "Sequani", "many", "years", "had-held", "and", "by", "senate", "of-people", "Roman", "friend", "having-been-called", "was,"] ],
  [ ["ut", "regnum", "in", "civitate", "sua", "occuparet,", "quod", "pater", "ante", "habuerat;"],
    ["that", "[the]-sovereignty", "in", "state", "his-own", "he-should-seize,", "which", "[his]_father", "before", "had-held;"] ],
  [ ["itemque", "Dumnorigi", "Aeduo,", "fratri", "Diviciaci,"],
    ["so-also", "on-Dumnorix", "Aeduan,", "brother", "of-Divitiacus,"] ],
  [ ["qui", "eo", "tempore", "principatum", "in", "civitate", "obtinebat", "ac", "maxime", "plebi", "acceptus", "erat,"],
    ["who", "at-that", "time", "highest-rank", "in", "state", "was-holding", "and", "in-the-highest-degree", "to-common-people", "acceptable", "was,"] ],
  [ ["ut", "idem", "conaretur", "persuadet", "eique", "filiam", "suam", "in", "matrimonium", "dat."],
    ["that", "the-same", "he-should-attempt", "he-prevails", "to-that-one-also", "daughter", "his-own", "in", "marriage", "gives."] ],
  [ ["Perfacile", "factu", "esse", "illis", "probat", "conata", "perficere,"],
    ["Very-easy", "in-the-doing", "to-be", "to-them", "he-shows", "[the]_undertakings", "thoroughly-to-make,"] ],
  [ ["propterea", "quod", "ipse", "suae", "civitatis", "imperium", "obtenturus", "esset:"],
    ["because-of-this", "that", "he-himself", "of-his-own", "state", "[the]-rule", "about-to-obtain", "was:"] ],
  [ ["non", "esse", "dubium,", "quin", "totius", "Galliae", "plurimum", "Helvetii", "possent;"],
    ["(it)_not", "to-be", "doubtful,", "but-that", "of-all", "Gaul", "[the]-most", "Helvetii", "could;"] ],
  [ ["se", "suis", "copiis", "suoque", "exercitu", "illis", "regna", "conciliaturum", "confirmat."],
    ["himself", "by-means-of-his-own", "forces", "by-his-own-also", "army", "to-those", "kingly-powers", "about-to-gain-over", "(to-be)_he-assures."] ],
  [ ["Hac", "oratione", "adducti", "inter", "se", "fidem", "et", "iusiurandum", "dant,"],
    ["By-this", "speech", "to-led", "between", "themselves", "pledge", "and", "oath", "they-give,"] ],
  [ ["et", "regno", "occupato", "per", "tres", "potentissimos", "ac", "firmissimos", "populos", "totius", "Galliae", "sese", "potiri", "posse", "sperant."],
    ["and", "[the]-royal-power", "having-been-seized", "by-means-of", "three", "most-powerful", "and", "strongest", "peoples", "of-whole", "Gaul", "themselves", "to-become-masters", "to-be-able", "they-hope."] ]
];

var i = 0;
var j = 0;

var shown = 0;

function updateVoc() {
	
	var sentence = "";
	
	for(n = 0; n < sentences[i][0].length; n++) {
		if (n == j) {
			sentence += ' <span class="curword">' + sentences[i][0][n] + "</span>";
		} else {
			sentence += " " + sentences[i][0][n];
		}
	}
	
	document.getElementById('v3').innerHTML = sentence;
	
	if (shown == 0) {
		document.getElementById('v1').innerHTML = "";
	} else {
		document.getElementById('v1').innerHTML = sentences[i][1][j];
	}
}

function next() {
	shown++;
	if (shown > 1) {
		shown = 0;
		j++;
		if (j >= sentences[i][0].length) {
			j = 0;
			i++;
			if (i >= sentences.length) {
				i = 0;
				alert('All done!');
			}
		}
	}
	updateVoc();
}

function prev() {
	shown--;
	if (shown < 0) {
		shown = 1;
		j--;
		
		if (j < 0) {
			i--;
			if (i < 0) {
				i = sentences.length - 1;
				alert('All done!');
			}
			j = sentences[i][0].length - 1;
		}
	}
	
	updateVoc();
}

</script>

<body onload="updateVoc()">
<h1 style="text-align:center; color: #60B0C0;">Liber I - Caput III</h1>

<div class="center">
<div id="v3" class="v3"></div>
<div id="v2" class="v2">&nbsp;</div>
<div id="v1" class="v1"></div>


<a href="#" class="button" id="btnprev" onclick="prev()" accesskey="p">&lt;&lt;</a>
<a href="#" class="button" id="btnnext" onclick="next()" accesskey="n">&gt;&gt;</a>


</div>
</body>
</html>
